#define _CRT_SECURE_NO_WARNINGS 1
#include <iostream>
#include <list>
#include <vector>
#include <string>
using namespace std;

#include "string.h"

void test_string1()
{
	ly::string s1("hello world");
	//cout << s1.c_str() << endl;
	cout << s1 << endl;


	ly::string s2;
	s2 = s1;
	cout << s2.c_str() << endl;

	ly::string::iterator it = s2.begin();
	while (it != s2.end())
	{
		cout << *it << " ";
		it++;
	}
	cout << endl;
}

void test_string2()
{

}

int main()
{
	test_string1();

	return 0;
}